import request from '@/utils/request.js'
// 获取分类商品
export const getoneCategory = id => {
  return request({
    url: '/category',
    method: 'get',
    params: { id }
  })
}
// 搜索商品列表
export const postSearchGoods = data => {
  return request({
    url: '/search/all',
    method: 'post',
    data
  })
}
// 获取商品详情
export const getGoodsData = id => {
  return request({
    url: '/goods',
    method: 'get',
    params: { id }
  })
}
